/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.search.entity;

import com.thinkgem.jeesite.modules.search.core.annotation.SearchColum;
import com.thinkgem.jeesite.modules.search.core.annotation.SearchEntity;

/**
 * 文章的全文索引Entity
 * @author hongye
 * @version 2017-04-19
 */
@SearchEntity(searchFields = { "author", "content", "type" }, idFiled = "name")
public class SearchArticle {
	
	@SearchColum(name = "title", index = true, store = true)
	private String title;		// 文章名称
	@SearchColum(name = "content", index = true, store = true, highLight = true)
	private String content;		// 文章内容
	@SearchColum(name = "category", index = false, store = true)
	private String category;		// 文章类别
	
	public SearchArticle() {
		super();
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}
	
}